<template>
  <div id="Main">
    <func-bar v-on:setIndex="setIndex" :bars="bars"></func-bar>
    <div>
      <main-tab v-if="index == 0"></main-tab>
    </div>
  </div>
</template>

<script>
import MainTab from "./component/MainTab";
import FuncBar from "@/components/global/component/Funcbar";

export default {
  data() {
    return {
      index: 0,
      bars: [
        {"icon":"mdi-pencil", "color":"green", "notify": true},
        // {"icon":"mdi-heart", "color":"red", "notify": false}
      ]
    };
  },
  components: { MainTab, FuncBar },
  methods: {
    setIndex(i) {
      this.index = i
    }
  }
};
</script>

<style lang="scss" scoped>
#Main {
  background:#fafafa;
}
</style>
